import Vue from './modules/index'

const App = {
  el: '#app',
  data() {
    return {
      title: '测试',
      imgUrl: 'https://image.baidu.com/search/detail?ct=503316480&z=undefined&tn=baiduimagedetail&ipn=d&word=%E5%9B%BE%E7%89%87&step_word=&ie=utf-8&in=&cl=2&lm=-1&st=undefined&hd=undefined&latest=undefined&copyright=undefined&cs=443260409,3562412549&os=1619154166,2313910332&simid=443260409,3562412549&pn=3&rn=1&di=7163459808492781569&ln=992&fr=&fmq=1669598461704_R&fm=&ic=undefined&s=undefined&se=&sme=&tab=0&width=undefined&height=undefined&face=undefined&is=0,0&istype=0&ist=&jit=&bdtype=0&spn=0&pi=0&gsm=1e&objurl=https%3A%2F%2Fgimg2.baidu.com%2Fimage_search%2Fsrc%3Dhttp%253A%252F%252Flmg.jj20.com%252Fup%252Fallimg%252F1114%252F040221103339%252F210402103339-8-1200.jpg%26refer%3Dhttp%253A%252F%252Flmg.jj20.com%26app%3D2002%26size%3Df9999%2C10000%26q%3Da80%26n%3D0%26g%3D0n%26fmt%3Dauto%3Fsec%3D1672190458%26t%3D918d6cfa51c49a2a7b68846de89c5834&rpstart=0&rpnum=0&adpicid=0&nojc=undefined&dyTabStr=MCwzLDEsNiw0LDIsNSw3LDgsOQ%3D%3D'
    }
  },
  template: `
    <img :src="imgUrl" />
    <div>
      <button @click="changeShow">显示按钮</button>
      <button @click="testData">测试按钮</button>
    </div>
  `,
  methods: {
    testData () {
      console.log(this)
    }
  }
}

var app = new Vue(App)
app.testData()

console.log(app)